package indi.pers.priv.onem;

import java.util.Random;

/**
 * 小蜜蜂:是飞行物
 */
public class Bee extends FlyingObject{
    private int xSpeed; //x移动速度
    private int ySpeed; //y移动速度
    private int awardType; //奖励类型
    public Bee(){
        super(60,51);
       /* width=60; //小敌机宽高看图片属性
        height=51;
        Random rand = new Random();
        //小敌机初始位置在窗口外(看不到为负) x:0到(窗口宽-小敌机宽)内的随机数
        x= rand.nextInt(World.WIDTH-width);
        y=-height;*/
        xSpeed=1;
        ySpeed=2;
        Random rand = new Random();
        awardType=rand.nextInt(2); //0到1之间的随机数(奖励种类是随机的)
    }
}
